package com.hmall.common.client;

import com.hmall.common.pojo.Address;
import com.hmall.common.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author chengjy
 * @date 2023/5/19
 */

@FeignClient(name = "userservice",path = "/user")
public interface UserClient {

    @GetMapping("/{id}")
    User getById(@PathVariable Long id);
}
